package cn.myjava.gupao.mode.prototype;

/**
 * Created by RenFu
 * Date: 2019/5/16
 */
public class StudentOne implements Prototype {

    private String code;
    private String name;
    private String sex;
    private int age;
    private int classId;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    @Override
    public Prototype clone() {
        StudentOne studentOne = new StudentOne();
        studentOne.setCode(this.code);
        studentOne.setName(this.name);
        studentOne.setSex(this.sex);
        studentOne.setAge(this.age);
        studentOne.setClassId(this.classId);
        return studentOne;
    }

    public String toString() {
        return "[code=" + code + ", name=" + name + ", sex=" + sex + ", age=" + age + ", classId=" + classId + "]";
    }

}
